<html>
hello world!
<pre>
<?php
echo '555';
echo $_POST['elm2'];

$serv = 'enter server here';
$user = 'enter user name here';
$pass = 'enter password here';
$dbase = 'entere database name here';
echo '1';
$link = mysql_connect($serv,$user,$pass);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo '2';
if (!mysql_select_db($dbase, $link)) {
    echo 'Error : Could not select database\n';
    exit;
}

//$sql    = 'INSERT INTO guestbook (\'index\' ,\'data\' ,\'author\' ,\'date\' ,\'time\') VALUES (\'456\', \''. $_POST['elm2'] . '\', \'' . $_POST['user'] . ', \'30/4/10\', \'17:42\')';
$sql = 'INSERT INTO guestbook (data ,author ,date ,time) VALUES (\'' . $_POST['elm2'] . '\', \'abcd\', CURDATE(), CURTIME())';
echo $sql;
$result = mysql_query($sql, $link);

if (!$result) {
    echo "error\n";
	echo $result;
	exit;
	} else
	echo "done...\n";


?>
</pre>

</html>